package com.mk.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Article implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    public static final String USER_ID = "userId";
    public static final String CONTENT = "content";
    public static final String IMAGE = "image";
    public static final String CREATE_TIME = "createTime";
    public static final String UPDATE_TIME = "updateTime";

    private Long id;
    //发表文章的用户id
    private Long userId;
    //内容（字数限制500）
    private String content;
    //文章配图（限制10张）
    private String image;
    //被点赞量
    private Long beLiked;
    //发表时间
    private LocalDateTime createTime;
    //修改时间
    private LocalDateTime updateTime;
}
